from rest_framework import serializers
from .models import *


class OrderModelSerializers(serializers.ModelSerializer):
    class Meta:
        model = OrderModel
        fields = '__all__'





class ProductSerializers(serializers.ModelSerializer):
    class Meta:
        model = Products
        fields = '__all__'

class UserSerializers(serializers.ModelSerializer):
    class Meta:
        model = UserModel
        fields = '__all__'

class ShowOrderModelSerializers(serializers.ModelSerializer):
    product = ProductSerializers()
    user = UserSerializers()
    class Meta:
        model = OrderModel
        fields = '__all__'